import type {ResponseInterface} from "@/type/models";
import {API} from "@/api/NewAxiosAPI";

export async function getProjectListAPI(token:string,page: number) {
    const r = await API({
        url: "/project/list/" + page,
        method: "get",
        headers: {
            Authorization: token
        }
    })
    return r.data
}

export async function getTeamMemberAPI(token:string,projectId:string){
    const r = await API({
        url: "/project/user/" + projectId,
        method: "get",
        headers: {
            Authorization: token
        }
    })
    return r.data
}